-
Couldn't load subscription status.
- Fork 1.1k
Add plugin to copy binary files from the scala 2 artefacts #22480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
06e8deb to
b54b19b
Compare
9b0e761 to
8cb6b70
Compare
b0059ff to
b4f9001
Compare
…22519) Scala 2 generates extension methods for Value Classes before pickling while Scala 3 generates them after. Now that we are working on compiling the Scala 2 stdlib with dotty (#22480), and therefore generating tasty files for the stdlib, we will have to distinguish between scala 2 that was unpickled and scala 2 code coming from tasty. For that, we currently have a flag, but it is not very useful apart from some very specific details where a workaround exists. This PR, removes one of 2 places where this flag is used. The [second place](https://github.com/scala/scala3/blob/aa9db1f682de634743af6d7077d5ed752430a487/compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala#L51) will be removed once we inline the missing symbol in `Predef.scala` (after #22480) is merged.
b4f9001 to
cae8dd2
Compare
) When compiling under `-Ycompile-scala2-library`, we should consider the source code as Scala 2. This change will allow using Scala 2's erasure instead of Scala 3's. Related to #22480
4633da3 to
a657522
Compare
78b24d1 to
07afa47
Compare
07afa47 to
c8f6c4a
Compare
|
We will tackle the issue of generic signatures, and the logic to build the jar artifact in a subsequent PR |
|
Does it really require minor release or is it just to be on a safe side? Thinking about it in terms of Scala LTS |
|
What would the LTS even do with this, if it were backported? |
|
Yeah, I might have been overthinking things here. |
First part of #22043
Supersedes #22399
Blocked by:
AnyValbetween Scala 2 and Scala 3 #22493AnyValunder-Ycompile-scala2-library#22533$init$trait constructors under-Ycompile-scala2-library#22496@publicInBinaryin 3.7.0 #22497@publicInBinarydoesn't have any effect on secondary constructors #22498Array[Null]andArray[Nothing]#22515-Ycompile-scala2-library#22520Not blocking, but related: